package 赛码.qh360.first;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * 加速问题
 */
public class Main {
    static Map<String,Double> map = new HashMap<String,Double>();
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int M = sc.nextInt();
        int d[] = new int[M];
        for(int i = 0 ;i<M;i++){
            d[i] = sc.nextInt();
            map.put(String.valueOf(d[i]),Double.parseDouble(String.valueOf(sc.nextInt())));
        }
        Arrays.sort(d);
        double v0 = 0.0;
        for (int i = d.length-1;i>-1;i--){

        }
    }
    public static double jisuan(double v0,double v,int i){
        return 1.0;
    }
    public static double function(double v1,double va,double v0,double t){//距离
       return  v0*t+0.5*va*(Math.pow(t,2));
    }
    public static double function1(double v0,double va,double t){//速度
        return v0+va*t;
    }
}
